'''
Created on Jan 19, 2010

@author: roman

$Id: utils.py 18 2010-01-20 11:14:09Z sigizmund $
'''

def isImageHosting(url):
    '''
    Checks, that short URL represents image hosting. If so, we shouldn't expand it as 
    we may need to deal with it in a special way in custom filters
    '''
    image_hostings = ['twitpic', 'yfrog', 'moby', 'fli.kr', 'img.ly']
    for img in image_hostings:
        if url.find(img) != -1:
            return True
    return False
